<?php
C_base::yn_file('m'.DS.'Model.php');
class xitongglModel extends model{
/******************************************************************操作方法***********************************************************************/
	//设置表的操作
	function config_s(){
		return $this->config()->s();
	}
	
	function config_u($w,$u){
		return $this->config()->w($w)->u($u);
	}
	
	//管理员表的操作
	function admin_ss($w){
		return $this->admin()->w($w)->ss();
	}
	
	function admin_s($w){
		return $this->admin()->w($w)->s();
	}
	
	function admin_c($c){
		return $this->admin()->c($c);
	}
	
	function admin_u($w,$u){
		return $this->admin()->w($w)->u($u);
	}
	
	function admin_d($w){
		return $this->admin()->w($w)->d();
	}
	
	//组表的操作
	function zu_ss($w){
		return $this->zu()->w($w)->ss();
	}
	
	function zu_s($w){
		return $this->zu()->w($w)->s();
	}
	
	function zu_c($c){
		return $this->zu()->c($c);
	}
	
	function zu_u($w,$u){
		return $this->zu()->w($w)->u($u);
	}
	
	function zu_d($w){
		return $this->zu()->w($w)->d();
	}
	
	//广告表的操作
	function guanggao_ss($w){
		return $this->guanggao()->w($w)->ss();
	}
	
	function guanggao_s($w){
		return $this->guanggao()->w($w)->s();
	}
	
	function guanggao_c($c){
		return $this->guanggao()->c($c);
	}
	
	function guanggao_u($w,$u){
		return $this->guanggao()->w($w)->u($u);
	}
	
	function guanggao_d($w){
		return $this->guanggao()->w($w)->d();
	}
	
	//友情链接表的操作
	function link_ss($yid,$w,$page='',$pagesize=''){
		if($page){
			return $this->link($yid)->w($w)->p($page,$pagesize)->ss();
		}else{
			return $this->link($yid)->w($w)->ss();
		}
	}
	
	function link_s($yid,$w){
		return $this->link($yid)->w($w)->s();
	}
	
	function link_c($yid,$c){
		return $this->link($yid)->c($c);
	}
	
	function link_u($yid,$w,$u){
		return $this->link($yid)->w($w)->u($u);
	}
	
	function link_d($yid,$w){
		return $this->link($yid)->w($w)->d();
	}

	//语言表操作
	function language_c($c){//语言表写入
		return $this->language()->c($c);
	}
	
	function language_s($w){//语言表查询(单条)
		return $this->language()->w($w)->s();
	}
	
	function language_ss($w){//语言表查询(多条)
		return $this->language()->w($w)->ss();
	}
	
	function language_u($w,$u){//语言表修改
		return $this->language()->w($w)->u($u);
	}
	
	function language_d($w){//语言表删除
		return $this->language()->w($w)->d();
	}
	
	//自定义表单表操作
	function biaodan_c($c){
		return $this->biaodan()->c($c);
	}
	
	function biaodan_s($w){
		return $this->biaodan()->w($w)->s();
	}
	
	function biaodan_ss($w){
		return $this->biaodan()->w($w)->ss();
	}
	
	function biaodan_u($w,$u){
		return $this->biaodan()->w($w)->u($u);
	}
	
	function biaodan_d($w){
		return $this->biaodan()->w($w)->d();
	}
/******************************************************************数据库、表**********************************************************************/
	function config(){
		return $this->db_cms()->config;
	}
	
	function admin(){
		return $this->db_cms()->admin;
	}
	
	function zu(){
		return $this->db_cms()->zu;
	}
	
	function guanggao(){
		return $this->db_cms()->guanggao;
	}
	
	function link($yid){
		$r = 'link_'.$yid;//对应语言的表名
		return $this->db_cms()->$r;
	}
	
	function language(){
		return $this->db_cms()->language;
	}
	
	function biaodan(){
		return $this->db_cms()->biaodan;
	}
}
/*********************************************************************文件已结束*****************************************************************/